package com.hyh.main;

import com.hy.remotecontrol.RemoteControl;
import com.hyh.command.Command;
import com.hyh.command.LightCommand;
import com.hyh.command.MacroCommand;
import com.hyh.command.WindowCommand;
import com.hyh.model.Light;
import com.hyh.model.Window;

public class RemoteLoader {

	public static void main(String[] args) {
		
		RemoteControl remoteControl = new RemoteControl();
		Light light = new Light();
		Window window = new Window();
		Command lightCommand=new LightCommand(light);
		Command windowCommand= new WindowCommand(window);
		Command commands[]  = {lightCommand,windowCommand};
		Command macroCommand = new MacroCommand(commands);
		
		remoteControl.setCommand(1, lightCommand);
		remoteControl.setCommand(2, windowCommand);
		remoteControl.setCommand(3, macroCommand);
		
		
		remoteControl.onButtonWasPushed(3);
		remoteControl.offButtonWasPushed(3);
		remoteControl.undoButtonWasPushed();
		

	}

}
